/*
 * EchoParse.h
 *
 *  Created on: 2012-12-24
 *      Author: yangentao@gmail.com
 */

#pragma once;
#include <string>
#include <vector>
#include "../yet/LineParse.h"
#include "../yet/String.h"
using namespace std;
namespace ftp {
using namespace yet;

class EchoSeg {
public:
	EchoSeg();
public:
	void clear();
	bool empty();
public:
	int code;
	vector<string> lines;
};

class EchoParse {
public:
	EchoParse();
	virtual ~EchoParse();
public:
	void parse(string echo);
	void parse(String echo);
	void clear();
	bool empty();
	int size();
	int getCode(int index);
	vector<string> getLines(int index);
public:
	vector<EchoSeg> echos;
};

} /* namespace yet */
